# coding: utf-8
"""
@python version : python3.10
@file name      : app01.py
@date           : 2024/5/14 11:29
@author         : ziyang.yang@aliyun.com
@gitee          : https://gitee.com/ziyangyang1318
@blog           : www.yangziyang.top
@describe       : 
"""
from fastapi import APIRouter

app01 = APIRouter()


@app01.get('/user/1')
async def get_user_1():
    return {'user': '这是user1的信息'}


@app01.get('/user/{user_id}')
async def get_user(user_id: int):
    return {'user': user_id}
